import datetime
import time

from django.shortcuts import render

# Create your views here.
def hello(request):
    return render(request, "hello.html", context={"name": "韩磊"})

def index(request):
    context = {
        'city': '北京',
        'adict': {
            'name': '西游记',
            'author': '吴承恩'
        },
        'alist': [1, 2, 3, 4, 5],
        "person":{
            "name":"哈哈小明",
            "age":18
        },
        "html":"<h1 style='color:red'>这是红色的</h1>",
        "value":datetime.datetime.now()
    }
    return render(request, 'index.html', context)


def inherit(request):
    return render(request,"son.html")




